package com.wangm.easyes.controller;

import com.wangm.easyes.index.mapper.DocumentMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 测试controller
 *
 * @author wangmeng
 * @since 2024/8/18
 */
@RestController
@RequestMapping("test")
public class TestController {

    @Autowired
    DocumentMapper documentMapper;

    @GetMapping
    public String testDocument(){
        Boolean index = documentMapper.createIndex();
        return "success";
    }
}
